import type { Iroute } from "../../types"

//导入接口
import Home from "./home"
import CourseList from "./courselist"
import SchduleRouter from "./schdule"
import Maintaince from "./maintaince"
import Query from "./query"
import { MeasureSet } from "./measureset"
import MeasureOperate from "./measureoperation"

const URL = "/hrsystem"

//访问路径,对应方法
const routes: Array<Iroute> = [
  {
    url: URL + "/home",
    fn: Home,
  },
  {
    url: URL + "/courselist",
    fn: CourseList,
  },
  {
    url: URL + "/schedule",
    fn: SchduleRouter,
  },
  {
    url: URL + "/maintaince",
    fn: Maintaince,
  },
  {
    url: URL + "/query",
    fn: Query,
  },
  {
    url: URL + "/measureset",
    fn: MeasureSet,
  },
  {
    url: URL + "/measureoperate",
    fn: MeasureOperate,
  },
]

export default routes
